package com.szeastroc.eureka.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.szeastroc.eureka.service.RibbonService;

@RestController
@RequestMapping("/hi")
public class HellowController {

	@Autowired
	private RibbonService ribbonService;

	@GetMapping("getServerName")
	public String sayHi() {
		return ribbonService.sayHi();
	}

}
